package services

import "shyxy-model-agent/core/repository"

func GetOnlineModelStartInfo(modelInfoID uint, repo repository.OnlineModelRepository) (baseUrl string, apiKey string, err error) {
	onlineModelInfo, err := repo.FindOneByModelInfoIDWithModelInfo(modelInfoID)
	if err != nil {
		return "", "", err
	}
	return onlineModelInfo.Uri, onlineModelInfo.ApiKey, nil

}
